package io.kiki.sba.registry.api.exchange;

import io.kiki.sba.registry.api.Channel;

public interface Callback<T> {
    // callback channel maybe is null
    void onSuccess(Channel channel, T message);

    // callback channel maybe is null
    void onFailed(Channel channel, Throwable exception);
}
